function aptOverviewInit() {
    // Variable declaration	
    var textAdvisedId = emosWS.getNewElementId();

    var languageTexts = {
        "T02_Overview": {
            id: "apt_Process_Overview",
            text: "Overview"
        }
    };


    function createDom() {
        var html = '<span id="apt_Process_Overview" class="emosbutton overviewButton standardFontSize">Overview</span>';

        $('#apt_OverviewButton').append(html);
    } 


    function eventHandler() {
        $('#apt_Process_Overview').click(function(e) {
            var rob = "Overview";
            sessionStorage.setItem("apt_AT_LastSelectedRobot", rob);
            console.log("Button pressed " + rob);
 
            var appname = sessionStorage.getItem("apt_appName");

            var robotProcess = sessionStorage.getItem("apt_" + rob + ".Process");
            var robotProcessDetails = sessionStorage.getItem("apt_" + rob + ".ProcessDetails");

            var processToDisplay = sessionStorage.getItem("apt_AT_" + robotProcess + '.' + robotProcessDetails);
            sessionStorage.setItem("apt_currentProccesSchemePath", processToDisplay.split("/")[0]);

            var frame = document.getElementById("plants");
            var url = frame.src;
          
            url = url.split("PMR/")[0] + processToDisplay + "?app=" + appname + '&rob=' + rob + '&cache=' + (new Date()).getTime();

            // Check if we can access the frame obj (especially for IE necessary)
            if (frame !== null) {
                if (frame.src) {
                    frame.src = url;
                }
                else if (frame.contentWindow !== null && frame.contentWindow.location !== null) {
                    frame.contentWindow.location = url;
                }
                else {
                    frame.setAttribute('src', url);
                }
            } 
        });

    }
    createDom();
    eventHandler();
    languageHandler(languageTexts, textAdvisedId);
}
